<?php

namespace Database\Factories;

use App\Models\Event;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Event>
 */
class EventFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'title' => $this->faker->sentence(),
            'venue' => $this->faker->company(),
            'date' => $this->faker->dateTimeBetween('now', '+6 months'),
            'price' => $this->faker->randomFloat(2, 50, 2000),
            'description' => $this->faker->paragraph(),
            'image_url' => $this->faker->imageUrl(),
            'city' => $this->faker->randomElement(['beijing', 'shanghai', 'guangzhou', 'shenzhen', 'hangzhou']),
            'category' => $this->faker->randomElement(['concert', 'drama', 'sports', 'exhibition', 'meeting']),
        ];
    }
}